using System;

namespace QLST_DTO
{
    [Serializable]
    public class PHAN_PHOI
    {
        private int maHang;
        private int maNCC;
        private int soLuong;
        private int donGia;
        private int dVT;
        private int nVPP;
        public PHAN_PHOI()
        { }
        public PHAN_PHOI(int maHang, int maNCC, int soLuong, int donGia, int dVT, int nVPP)
        {
            this.maHang = maHang;
            this.maNCC = maNCC;
            this.soLuong = soLuong;
            this.donGia = donGia;
            this.dVT = dVT;
            this.nVPP = nVPP;
        }
        public int MaHang
        {
            get { return this.maHang; }
            set
            {
                if (value == null)
                    throw new Exception("maHang not allow nullvalue.");
                this.maHang = value;
            }
        }
        public int MaNCC
        {
            get { return this.maNCC; }
            set
            {
                if (value == null)
                    throw new Exception("maNCC not allow nullvalue.");
                this.maNCC = value;
            }
        }
        public int SoLuong
        {
            get { return this.soLuong; }
            set { this.soLuong = value; }
        }
        public int DonGia
        {
            get { return this.donGia; }
            set { this.donGia = value; }
        }
        public int DVT
        {
            get { return this.dVT; }
            set { this.dVT = value; }
        }
        public int NVPP
        {
            get { return this.nVPP; }
            set
            {
                if (value == null)
                    throw new Exception("nVPP not allow nullvalue.");
                this.nVPP = value;
            }
        }
        public override string ToString()
        {
            return this.maHang + "; " + this.maNCC + "; " + this.soLuong + "; " + this.donGia + "; " + this.dVT + "; " + this.nVPP + "; ";
        }


    }
}